#coding:utf8
from django.conf.urls import patterns, include, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'kankancai.views.home', name='home'),
    # url(r'^kankancai/', include('kankancai.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    
    url(r'^$','review.menu.index'),
    url(r'^rate/(\d{4})/$', 'review.rate.index'),
    url(r'^rate/add/$', 'review.rate.add'),
    url(r'^menu/pf/$', 'review.menu.pf'),

    url(r'^admin/login/$', 'review.admin.login'),
    url(r'^admin/$', 'review.admin.index'),
    url(r'^admin/cpmc/$', 'review.admin.cpmc'),
    url(r'^admin/addTodayCP/$', 'review.admin.addTodayCP'),

    url(r'^fl/$', 'review.admin.fl'),

    url(r'^cp/$', 'review.admin.cp'),
    url(r'^cp/(\d{2})/$', 'review.admin.cp'),# \d{2}表示两位数字 如cp/00/或者cp/10/
    url(r'^cp/addCP/$', 'review.admin.addCP'),
    url(r'^cp/updateCP/$', 'review.admin.updateCP'),

    url(r'^dbtest/$','review.dbtest.index'),
)
